/* 
 * File:   IndexUtil.h
 * Author: sriram
 *
 * Created on 9 November, 2013, 1:08 PM
 */

#ifndef INDEXUTIL_H
#define	INDEXUTIL_H
#include "../dependency/StatusCodes.h"
#include "IndexHeaderPage.h"
#include <string.h>
#include <stdlib.h>
class IndexUtil {
public:
    IndexUtil();
    IndexUtil(const IndexUtil& orig);
    virtual ~IndexUtil();
    static int compareKeys(const char* key1, const char* key2, IndexHeaderPage *indexHeaderPage_);
    static int compareKeys(const char* key1, const char* key2, int noColumns, IndexHeaderPage *indexHeaderPage_);
    static int validateKeys(const char* key1, const char* key2, vector<int> arrOperatorType, IndexHeaderPage *indexHeaderPage_);
    static string keyToString(const char *key, IndexHeaderPage *indexHeaderPage_);
private:

};

#endif	/* INDEXUTIL_H */

